import bus from "@/bus";
import { renderButton } from '@/util';
let data = {
  status: 'pass',
  totalItem: 1,
  pageSize: 10,
  currentPage: 1,
  form: {
    companyname: '',
  },
  columns1: [{
    type: 'selection',
    width: 60,
    align: 'left',
  },{
    title: '单位编号',
    key: 'sourceBtypeNo',
    align: 'left',
  }, {
    title: '单位名称',
    key: 'sourceBtypeName',
    align: 'left',
  }, {
    title: '助记码',
    key: 'sourceBtypeEasyCode',
  }],
  columns2: [ {
    title: '单位编号',
    key: 'sourceBtypeNo',
    align: 'left',
  }, {
    title: '单位名称',
    key: 'sourceBtypeName',
    align: 'left',
  }, {
    title: '助记码',
    key: 'sourceBtypeEasyCode',
  }, {
    title: '操作',
    align: 'left',
    render: (h, params) => {
      return (
        <div>    
          { renderButton(h, { text: '解绑' }, ()=>{ bus.$emit("unbindDw", params.row)})}
        </div>
      )
    }
  }],
  data1: [],
  data2: []
}
export default data;
